#ifndef IDC_UBUS_LTE_H
#define IDC_UBUS_LTE_H
#include "ubus_common.h"

/**
 * num表示通道号为0，表示控制所有通道，大于0表示控制指定通道
 * val值为0表示关闭，1表示打开；如果
*/
enum {
        CHANNEL_NUM,
        CHANNEL_VAL,
        __CHANNL_MAX,
} ;
static const struct blobmsg_policy lte_init_policy[] = {
        [0] = { .name = "apn", .type = BLOBMSG_TYPE_STRING },
        [1] = { .name = "nat", .type = BLOBMSG_TYPE_INT32 },
        [2] = { .name = "usbnet", .type = BLOBMSG_TYPE_INT32 },

}; 
int lte1_info(struct ubus_context *ctx, struct ubus_object *obj, struct ubus_request_data *req, const char *method, struct blob_attr *msg);
int lte1_init(struct ubus_context *ctx, struct ubus_object *obj, struct ubus_request_data *req, const char *method, struct blob_attr *msg);
int lte2_base(struct ubus_context *ctx, struct ubus_object *obj, struct ubus_request_data *req, const char *method, struct blob_attr *msg);
int lte2_info(struct ubus_context *ctx, struct ubus_object *obj, struct ubus_request_data *req, const char *method, struct blob_attr *msg);
#endif